/**
 * 
 */
package dms.service;

import java.util.List;

import dms.dto.DormitoryDTO;
import dms.model.Building;
import dms.model.Campus;
import dms.model.Dormitory;
import dms.model.util.PageIterator;

/**
 * @author 李健
 *
 */
public interface DormitoryService {

	Dormitory findById(Long id);
	
	PageIterator<Dormitory> findByBuilding(int start, int count, Building building);
	
	PageIterator<Dormitory> findByCampus(int start, int count,Campus campus);
	
	PageIterator<Dormitory> findAll(int start, int count);
	
	Dormitory findByBuildingAndName(Building building, String name);
	
	Dormitory createDormitory(DormitoryDTO dormitoryInfo);
	
	Dormitory updateDormitory(DormitoryDTO dormitoryInfo);
	
	void deleteById(Long id);
	
	void deleteDormitories(List<Long> ids);
}
